pp108 : Sending Alerts to SysLog

Sending Alerts to SysLog

In this section you will learn how to use SysLog and view the log messages or alerts. The following example illustrates the configuration of the SyslogAppender that publishes the alerts to SysLog.

Adding a logging category

  1. Go to Process_Platform_install_dir/config directory and open the file Log4jConfiguration.xml.
  2. Add the following category:
    <category name="com.eibus.management.AlertSystem">
        <priority value="info"/>
        <appender-ref ref="SyslogAppender"/>
    </category>
    
  3. Add the Appender for SyslogAppender as follows:
    <appender xmlns='' class='org.apache.log4j.net.SyslogAppender' name='SyslogAppender'>
    <param name='syslogHost' value='<machinename>' />
    <param name='Facility' value='local6' />
    <layout class='org.apache.log4j.SimpleLayout' />
    </appender>
    
  4. Save the configuration.

Viewing log entries

  1. Perform any operation that raises alerts such as restarting the monitor, sending a license report, restarting the database server and so on.
  2. Open SysLog and check the alerts.

The syslogd Daemon

To log messages to Syslog Consumer:

  • Start the syslogd Daemon with remote logging as enabled.

To stop the syslogd service:

  • Type service syslog stop in the Linux prompt.

To start with remote logging as enabled:

  • Type syslogd -r -l host name -f /etc/syslog.conf in the Linux prompt.